import java.util.Arrays;
public class Test {
    /*public static void main(String[] args) {
        int a = 10;
        int b = 20;
        int c = add(a, b);
        System.out.println(c);
    }
    public static int add(int x, int y) {
        return x + y;
    }*/

    /*public static void main(String[] args) {
        int[] array = {1, 2};
        System.out.println("before:array[0]=" + array[0] + "array[1]=" + array[1]);
        swap(array);
        System.out.println("after:array[0]=" + array[0] + "array[1]=" + array[1]);
    }
    public static void swap(int[] array) {
        int tmp = array[0];
        array[0] = array[1];
        array[1] = tmp;
    }*/

    /*public static void main(String[] args) {
        int[] array = new int[]{};
        array[0] = 1;
    }*/

    /*public static void main(String[] args) {
        int[] array = new int[]{1,2,3,4,5,6,7,8,9,10};
        System.out.println(Arrays.toString(array));
        System.out.println(Arrays.toString(Arrays.copyOf(array, array.length)));
    }*/


    public static void main(String[] args) {
        int[][] array = new int[][]{
                {1,1,1,1},{2,2,2,2},{3,3,3,3}
        };
        for (int rel = 0; rel < array.length; rel++) {
            for (int col = 0; col < array[rel].length; col++) {
                System.out.print(array[rel][col] + " ");
            }
            System.out.println();
        }
    }
}
